package com.ylr.user.framework.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-03-10 23:00:19
 * className: UserMessageEntity 用户消息表实体类
 * version: 1.0
 * description:
 * 	用户消息表
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("yu_user_message")
public class UserMessageEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 消息主键
	 */
	@TableId
	private Long id;

	/**
	 * 接收用户主键
	 */
	private Long getUserId;

	/**
	 * 发送用户主键
	 */
	private Long sendUserId;

	/**
	 * 消息类型[0-系统消息]
	 */
	private Integer type;

	/**
	 * 用户查看状态[0-已看 1-未查看]
	 */
	private Integer readStatus;

	/**
	 * 消息标题
	 */
	private String title;

	/**
	 * 消息内容
	 */
	private String message;

	/**
	 * 删除状态[0-正常 1-删除]
	 */
	private Integer deleteStatus;

	/**
	 * 更新时间
	 */
	private Date updateTime;

	/**
	 * 创建时间
	 */
	private Date createTime;


}
